import requests
import json
import urllib

def aa():
    c = b'method=2&key=cad7f422e46b11ef86ed00163e0315cd'
    from urllib.parse import parse_qsl
    params = dict(parse_qsl(c))
    print(params)

def main():
    url = "https://c2c.kalaibao.com/coffee/api/ShowMember/"
    # url = "http://127.0.0.1:8000/coffee/api/ShowMember/"
    data = {"method": 2, "key": "cad7f422e46b11ef86ed00163e0315cd"}


    # 定义headers
    headers = {
        'User-Agent': 'My App/1.0',
        'Accept': 'application/json',
        'Authorization': "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoyMDE4MzEsImV4cCI6MTc3MTA5NzA3MiwibW9iaWxlIjoiMTU2MTMzNTQwOTgiLCJuaWNrX25hbWUiOiJcdTVmYWVcdTRmZTFcdTc1MjhcdTYyMzciLCJoZWFkX3VybCI6Imh0dHBzOi8vdGhpcmR3eC5xbG9nby5jbi9tbW9wZW4vdmlfMzIvUE9nRXdoNG1JSE80bmliSDBLbE1FQ05qakd4UVVxMjRaRWFHVDRwb0M2aWNSaWNjVkdLU3lYd2liY1BxNEJXbWlhSUd1RzFpY3d4YVFYNmdyQzlWZW1ab0o4cmcvMTMyIiwidXNlcm5hbWUiOiIxNTYxMzM1NDA5OCIsImNhbl9zaGFyZV9jb3Vwb24iOmZhbHNlfQ.-M7QAN9KQal3agsHZvuKpfdIPtha0LKzg336L0VcX-U"
    }
    a = requests.post(url, headers=headers, data=data, json=data)

    print(a.content)

if __name__ == '__main__':
    main()